import request from '@/utils/request.js'

/**
 * 获取登录和密码
 * @param {*} data username password
 * @returns promise
 */
export function login (data) {
  return request({
    url: 'login',
    method: 'POST',
    data
  })
}
